/** @odoo-module **/
import axios from "axios";


export async function myLogin(params) {
    // 登录操作
    
    const res = await axios.post('/web/session/authenticate', {
            "jsonrpc": "2.0",
            "method": "call",
            "params": params,
            "id": Math.round(Math.random() * 10 ** 10)
        }
    )
    session = res.data.result

}


export let session = odoo.__session_info__ || {};

delete odoo.__session_info__;
